package bean;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;

/**
 * @author Juliana Nóbrega - juliana@ffm.com.br
 */

public class User {

    private String name;
    private String login;
    private String password;
    private String description;
    private String marital_status;
    private Date birthday;
    private String hometown;
    private ArrayList<Object> outstanding_friends = new ArrayList<Object>();
    private ArrayList<Object> friends_accepted = new ArrayList<Object>();
    private SimpleDateFormat formatador = new SimpleDateFormat("dd/MM/yyyy");
       
    public User (){
        
    }

    public User(String name, String login, String password) {
        this.name = name;
        this.login = login;
        this.password = password;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public void formatoDate(String formato){
        formato = "dd/mm/yyyy";
        SimpleDateFormat formatar = new SimpleDateFormat(formato);
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) throws ParseException {
        this.birthday = formatador.parse("dd/mm/aaaa");
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getHometown() {
        return hometown;
    }

    public void setHometown(String hometown) {
        this.hometown = hometown;
    }

    public String getMarital_status() {
        return marital_status;
    }

    public void setMarital_status(String marital_status) {
        this.marital_status = marital_status;
    }

    public String getLogin() {
        return login;
    }

    public void setLogin(String login) {
        this.login = login;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public ArrayList<Object> getFriends_accepted() {
        return friends_accepted;
    }

    public void setFriends_accepted(Object friends_accepted) {
        this.friends_accepted = (ArrayList<Object>) friends_accepted;
    }

    public ArrayList<Object> getOutstanding_friends() {
        return outstanding_friends;
    }

    public void setOutstanding_friends(Object outstanding_friends) {
        this.outstanding_friends = (ArrayList<Object>) outstanding_friends;
    }
    
}
